<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script type="text/javascript" src="CommonUtil/CommonUtil.js"></script>
    <script type="text/javascript" charset="utf-8">
        //享受模式，优化的设计模式（优化：时间[代码的运行时间]，空间web浏览器内存）
        /**
         *
         * @param make       出厂商
         * @param model      型号
         * @param year       生产日期
         * @param owner      拥有者
         * @param tag        车牌号
         * @param renewDate  登记时间
         * @constructor
         */
      var Car = function (make,model,year,owner,tag,renewDate) {
          this.make = make;
          this.model = model;
          this.year = year;
          this.owner = owner;
          this.tag = tag;
          this.renewDate = renewDate;
      }
      Car.prototype = {
          constructor:Car,
          getMake:function () {
              return this.make;
          },
          getModel:function () {
            return this.model;
          },
          getYear:function () {
              return this.year;
          },
          getOwner:function () {
              return this.owner;
          },
          getTag:function () {
              return this.tag;
          },
          getRenewDate:function () {
              return this.renewDate;
          }
      }
      var arr = [];
      var startTime = new Date().getTime();
      for(var i = 0;i<5000000;i++){
          arr.push(new Car('上海大众','迈腾','2012-02-03','huangchao','F8888','2013-04-11'));
      }
      var endTime = new Date().getTime();
      alert(endTime-startTime);
    </script>
</head>
<body>
</body>
</html>